//
//  ProductDetailHeader.h
//  UEAssistant
//
//  Created by mac on 2017/2/10.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, HerderStyle) {
    HerderStyleNone,
    HerderStyleTotal
};

@protocol FoldSectionHeaderViewDelegate <NSObject>

- (void)foldHeaderInSection:(NSInteger)SectionHeader;

- (void)extensionButtonInSection:(NSInteger)SectionHeader tag:(NSInteger)tag;

- (void)selectHeaderSection:(NSInteger)section;

@end

@interface ProductDetailHeader : UITableViewHeaderFooterView

@property(nonatomic, strong) UIImageView        *typeImage;
@property(nonatomic, assign) BOOL fold;/**< 是否折叠 */
@property(nonatomic, assign) NSInteger section;/**< 选中的section */
@property(nonatomic, weak) id<FoldSectionHeaderViewDelegate> delegate;/**< 折叠协议 */
@property (nonatomic, strong) UIImageView  *seletImage;



/**
 初始化头部信息

 @param title 头部的标题
 @param detail 头部的详情
 @param section 第几组
 @param canFold 判断是否能展开section
 */
- (void)setFoldSectionHeaderViewWithTitle:(NSString *)title detail:(NSString *)detail section:(NSInteger)section canFold:(BOOL)canFold canSelect:(BOOL)canSelect height:(CGFloat)height;

- (void)swipeToRightForSelect;

@end
